package com.example.iot.service.websocket;

import com.example.iot.websocket.SessionEvent;
import org.springframework.web.socket.WebSocketSession;

/**
 * @author ChenXiangpeng
 */
public interface WebSocketService {
    /**
     * 处理消息
     * @param session websocketSession
     * @param message 消息体
     */
    void handleWebSocketMsg(WebSocketSession session, String message);

    void handleWebSocketSessionEvent(WebSocketSession session, SessionEvent sessionEvent);
}
